<form method="post" name="show_categories_form" action="">
<table border="0" class="List">
	<tr class="HeaderTr">
		<td colspan="3"><b><?php echo "Categories";?></b></td>
	</tr>
	<tr class="HeaderTr">
		<th width="15px"><input type="checkbox" name="" onclick="select_all(this);" /></th>
		<th class="LeftAlign" width="35%">Name</th>
		<th class="LeftAlign">Description</th>
	</tr>
	<?php if(!empty($categories)){
			foreach ($categories as $key=>$category){
	?>
	<tr class="<?php echo($key%2 == 0 ? 'row0' : 'row1'); ?>">
		<td><input type="checkbox" name="categories[]" value="<?php echo $category->id;?>" /></td>
		<td><?php echo $category->name;?></td>
		<td><?php echo $category->description;?></td>
	</tr>
	<?php }
	}?>
</table>
<input type="hidden" name="form" value="">
</form>
<?php $KToolBar->addLink('<a href="?option='.COMPONENT_NAME.'&page=categories&action=new"><img border="0" alt="New" src="images/new_f2.png"/><br />New</a>');?>
<?php $KToolBar->addLink('<a href="#" onclick="delete_selected(\'show_categories_form\')"><img border="0" alt="Delete" src="images/delete_f2.png"/><br />Delete</a>');?>
